package tech.aistar.pojo;

import lombok.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;



@Data
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
public class Order implements Serializable {
  private String orderId;
  private Integer userId;
  private BigDecimal totalAmount;
  private Integer addressId;
  private Integer orderStatus; // 0待支付，1已支付，2已发货，3已完成，4已取消
  private LocalDateTime payTime;
  private LocalDateTime sendTime;
  private LocalDateTime finishTime;
  private LocalDateTime createTime;

  // 用于前端显示的字段（非数据库字段）
  private String buyerName;    // 买家用户名
  private String sellerName;   // 卖家用户名
  private String sellerId;     // 从order_id解析出的卖家ID
}
